package de.baumann.browser.fragments;


import android.view.View;

import org.jetbrains.annotations.Nullable;

import de.baumann.browser.base.BasePresenter;
import de.baumann.browser.iview.IBaseView;
import de.baumann.browser.units.BrowserUnit;
import de.baumann.browser.adapter.Adapter_Record;

/**
 * @author：
 * @date：2018/9/26
 * @discription: 历史记录
 **/
public class HistoryFragment extends BaseBHFragment {

    @Override
    public void initView(View view) {
        super.initView(view);
        mListView.setOnItemLongClickListener((parent, view1, position, id) -> {
            showListMenu((Adapter_Record) parent.getAdapter(), list, position, BrowserUnit.FLAG_HISTORY);
            return true;
        });
    }

    @Override
    protected void loadData() {
        list = action.listHistory();
    }

    @Override
    public void initData() {

    }

    @Nullable
    @Override
    public BasePresenter createPresenter() {
        return null;
    }

    @Nullable
    @Override
    public IBaseView createView() {
        return null;
    }
}
